<?php /* Smarty version 2.6.16, created on 2009-04-28 21:28:42
         compiled from Compose.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'Compose.html', 7, false),array('function', 'messages', 'Compose.html', 44, false),array('function', 'url', 'Compose.html', 71, false),)), $this); ?>
<?php echo '
<script type="text/javascript">
    function checkLength()
    {
        if(document.getElementById(\'maintext\').value.length > 20000)
        {
            alert(\'';  echo smarty_function_language(array('text' => 'error_long_text'), $this); echo '\');
            return false;
        }
        else
            return true;
    }
</script>
'; ?>

<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="border2">
		
			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header"><?php echo $this->_tpl_vars['sBoxName']; ?>
</td>
				</tr>
			</table>
			
<?php if ($this->_tpl_vars['bPreview']): ?>
<table style="width: 100%;" cellpadding="4" cellspacing="4">
	<tr>
		<td class="border2">
		
			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header"><?php echo smarty_function_language(array('text' => 'preview'), $this);?>
</td>
				</tr>
			</table>
    		<?php echo $this->_tpl_vars['sPreviewTxt']; ?>

		</td>
	</tr>
</table>
<?php endif; ?>
<div style="padding-left: 20px; padding-top: 2px;">
<?php echo $this->_tpl_vars['jsValMess']; ?>

<?php echo smarty_function_messages(array('template' => '_blocks/errors_block.html','title' => 'COMPOSE ERRORS'), $this);?>

    <form method="post"	action="<?php echo $this->_tpl_vars['sUrl']; ?>
" onsubmit="if(!checkLength())return false; else <?php echo $this->_tpl_vars['jsValidation']; ?>
">
    <table style="width:100%;" cellspacing="2" cellpadding="4">
    <tr>
        <td style="text-align:right;" class="color"><span class="star">*</span> <?php echo smarty_function_language(array('text' => 'subject'), $this);?>
:</td>
        <td class="border13">
            <input value="<?php echo $this->_tpl_vars['aMess']['title']; ?>
" maxlength="60" id="user" name="aMess[title]" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" type="text">
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <span style="vertical-align: top; padding: 5px;"><span class="star">*</span> <?php echo smarty_function_language(array('text' => 'content'), $this);?>
</span>
            <div style="padding: 5px;">
                <textarea style="width:100%" cols="55" rows="15" id="maintext" name="aMess[text]" onfocus="this.className='textarea';" onblur="this.className='';"><?php echo $this->_tpl_vars['aMess']['text']; ?>
</textarea>
            </div>
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sMainTemplatePath'])."/_blocks/smilies.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        </td>
    </tr>
    <tr>
        <td colspan="2"><span class="star">*</span> - <?php echo smarty_function_language(array('text' => 'mandatory_fields'), $this);?>
</td>
    </tr>
    <tr>
        <td></td>
        <td>
            <input style="cursor: pointer;" name="act[sSend]" value=" <?php echo smarty_function_language(array('text' => 'submit_bulletin'), $this);?>
 " type="submit"  class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />
            <input style="cursor: pointer;" name="act[sPrev]" value="<?php echo smarty_function_language(array('text' => 'preview_456'), $this);?>
" type="submit"  class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />
            <span style="padding-left: 20px; font-size: 7pt;"> 
                <a class="link_action" href="javascript:void(0);" onclick="popUp2('<?php echo smarty_function_url(array('link' => "public.popup.help"), $this);?>
','500','500','yes','200','100');">[ <?php echo smarty_function_language(array('text' => 'html_guide'), $this);?>
 ]</a>
            </span>        
        </td>
    </tr>
    </table>
    </form>
</div>    

		</td>
	</tr>
</table>